package com.example.mo.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.mo.Entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {

    // 根据用户名（对应user_table的username字段）查询用户
    @Select("SELECT * FROM user_table WHERE username = #{username}")
    User selectByUsername(String username);
}
